%% ----------------------------------------------------------------
%% Thesis.tex -- MAIN FILE (the one that you compile with LaTeX)
%% ---------------------------------------------------------------- 

% Set up the document
\documentclass[a4paper, 11pt, twoside]{Thesis}  % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
\graphicspath{{Figures/}}  % Location of the graphics files (set up for graphics to be in PDF format)

% Include any extra LaTeX packages required
\usepackage[square, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the references in the Bibliography
\usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments
\usepackage{subfigure}
\usepackage{pdfpages}
\usepackage{vector}  % Allows "\bvec{}" and "\b\frac{}{}uvec{}" for "blackboard" style bold vectors in maths
\hypersetup{urlcolor=black, colorlinks=true}  % Colours hyperlinks in blue, but this can be distracting if there are many links.

%% ----------------------------------------------------------------
\begin{document}
\frontmatter	  % Begin Roman style (i, ii, iii, iv...) page numbering

%% Set up the Title Page
%\title  {AlterNews - An Automated Local Newspaper Generator  !!!!!!!!!!!!!!!REMOVE AND INSERT REAL COVER SHEET!!!!!!!!!!!!!!!!!!!!!!!!}
%\authors  {\texorpdfstring
%            {\href{ta4514@bris.ac.uk}{REMOVE AND INSERT REAL COVER SHEET}}
%            {REMOVE AND INSERT REAL COVER SHEET}
%            }
%\addresses  {\groupname\\\deptname\\\univname}  % Do not change this here, instead these must be set in the "Thesis.cls" file, please look through it instead
%\date       {\today}
%\subject    {}
%\keywords   {}
%
%\maketitle
%%% ----------------------------------------------------------------
%
%\setstretch{1.3}  % It is better to have smaller font and larger line spacing than the other way round
%
%% Define the page headers using the FancyHdr package and set up for one-sided printing
%\fancyhead{}  % Clears all page headers and footers
\rhead{\thepage}  % Sets the right side header to show the page number
%\lhead{}  % Clears the left side page header
%
%\pagestyle{fancy}  % Finally, use the "fancy" page style to implement the FancyHdr headers
%
%%% ----------------------------------------------------------------
%% Declaration Page required for the Thesis, your institution may give you a different text to place here
%\Declaration{
%
%\addtocontents{toc}{\vspace{1em}}  % Add a gap in the Contents, for aesthetics
%
%REMOVE THIS PAGE AND INSERT ACTUAL DECLARATION
%
%\begin{itemize} 
%\item[\tiny{$\blacksquare$}] REMOVE THIS PAGE AND INSERT ACTUAL DECLARATION
%\\
%\end{itemize}
% 
% 
%Signed:\\
%\rule[1em]{25em}{0.5pt}  % This prints a line for the signature
% 
%Date:\\
%\rule[1em]{25em}{0.5pt}  % This prints a line to write the date
%}
\clearpage  % Declaration ended, now start a new page


%
%%% ----------------------------------------------------------------
% The "Funny Quote Page"
%\pagestyle{empty}  % No headers or footers for the following pages
%
%\null\vfill
%% Now comes the "Funny Quote", written in italics
%\textit{``Newspapers are dead but it will take a while for the body to cool down.''}
%
%\begin{flushright}
%Jemima Kiss, Media Correspondent for The Guardian
%\end{flushright}
%
%\vfill\vfill\vfill\vfill\vfill\vfill\null
%\clearpage  % Funny Quote page ended, start a new page
%% ----------------------------------------------------------------

% EXECUTIVE SUMMARY PAGE
%\addtotoc{Executive Summary}  % Add the "Abstract" page entry to the Contents
%\abstract{
\onehalfspacing
\input{./Chapters/exec}
\singlespacing
%\addtocontents{toc}{\vspace{1em}}  % Add a gap in the Contents, for aesthetics

%% An executive summary of the entire project (i.e., including the
%%         business plan).  This should help the reader decide what the project
%%         is about, why the project was undertaken and whether or not the thesis
%%         is one that they want to read. 
%% 
%%         Finally, include a short list of bullet points (e.g., five or so) that
%%         summarise the main contributions and achievements in your project. For
%%         example: 
%% 
%%     * I wrote a total of 5,000 lines of software, comprising a Linux
%%                       device driver for a robot (in C) and a GUI (in Java) that
%%                       is used to control it.
%% 
%%     *             I created a new algorithm for computing the non-linear mapping
%%                       from A-space to B-space using a genetic algorithm, see page 17.
%%                  
%%     *             I implemented a version of the algorithm proposed by Jones and
%%                       Smith in [6], see page 12.
%%                  
%%     *             I spent 120 hours learning the API to the standard Java
%%                       garbage-collection sub-system. 
%% 
%%         This ensures that when the marking panel looks at your work, they can
%%         be clear about what you have done (i.e., nothing has been missed), how
%%         long it took and how it was influence by other material (e.g., the use
%%         of libraries or algorithms developed by someone else).


%%REMOVE THIS PAGE AND REPLACE WITH DECLARATION PAGE\ldots

%%}

\clearpage  % Abstract ended, start a new page
%%% ----------------------------------------------------------------
%
%\setstretch{1.3}  % Reset the line-spacing to 1.3 for body text (if it has changed)
%
%% The Acknowledgements page, for thanking everyone
%\acknowledgements{
%\addtocontents{toc}{\vspace{1em}}  % Add a gap in the Contents, for aesthetics
%
%The acknowledgements and the people to thank go here, don't forget to include your project advisor\ldots
%
%}
%\clearpage  % End of the Acknowledgements
%%% ----------------------------------------------------------------

\pagestyle{fancy}  %The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back


%% ----------------------------------------------------------------
\label{Contents}
\lhead{\emph{Contents}}  % Set the left side page header to "Contents"
\tableofcontents  % Write out the Table of Contents

%% ----------------------------------------------------------------
\lhead{\emph{List of Figures}}  % Set the left side page header to "List if Figures"
\listoffigures  % Write out the List of Figures

%% ----------------------------------------------------------------
\lhead{\emph{List of Tables}}  % Set the left side page header to "List of Tables"
\listoftables  % Write out the List of Tables

%% ----------------------------------------------------------------
% \setstretch{1.5}  % Set the line spacing to 1.5, this makes the following tables easier to read
% \clearpage  % Start a new page
% \lhead{\emph{Abbreviations}}  % Set the left side page header to "Abbreviations"
% \listofsymbols{ll}  % Include a list of Abbreviations (a table of two columns)
% {
% % \textbf{Acronym} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or \\
% \textbf{LAH} & \textbf{L}ist \textbf{A}bbreviations \textbf{H}ere \\
% 
% }

%%% ----------------------------------------------------------------
%\clearpage  % Start a new page
%\lhead{\emph{Physical Constants}}  % Set the left side page header to "Physical Constants"
%\listofconstants{lrcl}  % Include a list of Physical Constants (a four column table)
%{
%% Constant Name & Symbol & = & Constant Value (with units) \\
%Speed of Light & $c$ & $=$ & $2.997\ 924\ 58\times10^{8}\ \mbox{ms}^{-\mbox{s}}$ (exact)\\
%
%}

%%% ----------------------------------------------------------------
%\clearpage  %Start a new page
%\lhead{\emph{Symbols}}  % Set the left side page header to "Symbols"
%\listofnomenclature{lll}  % Include a list of Symbols (a three column table)
%{
%% symbol & name & unit \\
%$a$ & distance & m \\
%$P$ & power & W (Js$^{-1}$) \\
%& & \\ % Gap to separate the Roman symbols from the Greek
%$\omega$ & angular frequency & rads$^{-1}$ \\
%}
%%% ----------------------------------------------------------------
%% End of the pre-able, contents and lists of things
%% Begin the Dedication page
%
%\setstretch{1.3}  % Return the line spacing back to 1.3
%
%\pagestyle{empty}  % Page style needs to be empty for this page
%\dedicatory{For/Dedicated to/To my\ldots}
%
%\addtocontents{toc}{\vspace{2em}}  % Add a gap in the Contents, for aesthetics


%% ----------------------------------------------------------------
\onehalfspacing
\mainmatter	  % Begin normal, numeric (1,2,3...) page numbering
\pagestyle{fancy}  % Return the page headers back to the "fancy" style

% Include the chapters of the thesis, as separate files
% Just uncomment the lines as you write the chapters

\input{./Chapters/Chapter1} % Motivation

\input{./Chapters/Chapter2} % Background

\input{./Chapters/Chapter3} % Technical Basis 

\input{./Chapters/Chapter4} % Project Execution

\input{./Chapters/Chapter5} % Evaluation

\input{./Chapters/Chapter6} % Project Status


%% ----------------------------------------------------------------
% Now begin the Appendices, including them as separate files

\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics

\appendix % Cue to tell LaTeX that the following 'chapters' are Appendices

\input{./Appendices/AppendixA}	% Appendix Title

\input{./Appendices/AppendixB} % Appendix Title

%\input{./Appendices/AppendixC} % Appendix Title

\addtocontents{toc}{\vspace{2em}}  % Add a gap in the Contents, for aesthetics
\backmatter

%% ----------------------------------------------------------------
\label{Bibliography}
\lhead{\emph{Bibliography}}  % Change the left side page header to "Bibliography"
\bibliographystyle{unsrtnat}  % Use the "unsrtnat" BibTeX style for formatting the Bibliography
\bibliography{Bibliography}  % The references (bibliography) information are stored in the file named "Bibliography.bib"

\end{document}  % The End
%% ----------------------------------------------------------------
